<template>
<div>
  您好,
  <div>
    <button @click="show('a')">A页面</button>
    <button @click="show('b')">B页面</button>
  </div>
</div>
</template>

<script>
export default {
  // eslint-disable-next-line vue/multi-word-component-names
  name: "Index",
  methods:{
    show(index) {
      if(index == 'a') {
        this.$router.push('/a')
      }
      if(index == 'b') {
        this.$router.push('/b')
      }
    }
  }
}
</script>

<style scoped>

</style>